import apiTool, {
  getSize,
  getUserInfoUrl,
  getUserTypeValue,
} from "@/command/apiTool";
import { defineComponent, reactive } from "vue";
import PageTitle from "@/components/PageTitle";
import ButtonView from "@/components/ButtonView";
import subscribeIcon from "@/assets/image/subscribe_icon.png";
import { useRouter } from "vue-router";

export default defineComponent({
  setup(props, {}) {
    const router = useRouter();
    return () => (
      <PageTitle
        title=""
        childClass={"bg-[#fff] flex items-center justify-center p-[10px]"}
      >
        <img
          src={subscribeIcon}
          style={{ width: getSize(165), height: getSize(98) }}
        />
        <div class="text-[#1F1F1F] text-[16px] font-bold mt-[15px]">
          预约成功！
        </div>
        <ButtonView
          type="primary"
          block
          class="!h-[40px] !w-[200px] !mt-[60px]"
          onClick={() => router.go(-2)}
        >
          确定
        </ButtonView>
      </PageTitle>
    );
  },
});
